package com.xayy.health.mgt.mapper;

import cn.kawins.mybatis.BaseMapper;
import com.xayy.health.mgt.model.FaultModManage;
import com.xayy.health.mgt.model.TaskInfo;
import com.xayy.health.mgt.model.dto.TaskInfoDto;
import com.xayy.health.mgt.model.faultmodmanage.pojo.dto.FaultModManageDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @ClassName: FaultModManageDAO
* @Description: 数据访问接口
* @author liuyuan
* @date 2025-06-05
*/
@Mapper
@Repository
public interface FaultModManageMapper extends BaseMapper<FaultModManage> {
    @Select("" +
            "SELECT * FROM fault_mod_manage a WHERE 1   " +
            "AND a.mod_name=#{name}; ")
    List<FaultModManage> selectByName(@Param("name") String name);

    /**
     * 分页
     *
     * @param faultModManageDTO 入参
     * @return List<TaskInfo>
     */
    List<FaultModManage> pageList(FaultModManageDTO faultModManageDTO);
}